package com.partvoyage.shared;

import java.io.Serializable;

public class PhotoBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5129125428752577408L;

	public String picasaUrl;
	public String photoUrl;
	public String photoMiniatureUrl;
	public String photoTitre;
	public Double latitude;
	public Double longitude;

	public PhotoBean() {

	}

	public PhotoBean(String picasaUrl, String photoUrl, String photoTitle) {
		this.picasaUrl = picasaUrl;
		this.photoUrl = photoUrl;
		this.photoTitre = photoTitle;

		int index = photoUrl.lastIndexOf("/");
		photoMiniatureUrl = photoUrl.substring(0, index) + "/s144"
				+ photoUrl.substring(index);
	}

	public String getPicasaUrl() {
		return picasaUrl;
	}

	public void setPicasaUrl(String picasaUrl) {
		this.picasaUrl = picasaUrl;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}

	public String getPhotoMiniatureUrl() {
		return photoMiniatureUrl;
	}

	public void setPhotoMiniatureUrl(String photoMiniatureUrl) {
		this.photoMiniatureUrl = photoMiniatureUrl;
	}

	public String getPhotoTitre() {
		return photoTitre;
	}

	public void setPhotoTitre(String photoTitre) {
		this.photoTitre = photoTitre;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

}
